package com.briup.estore.service;

import com.briup.estore.common.dto.OrderCreateDTO;
import com.briup.estore.common.dto.OrderPaySuccessDTO;
import com.briup.estore.common.dto.OrderSearchDTO;
import com.briup.estore.common.vo.OrderDetailVO;
import com.briup.estore.common.vo.OrderInfoVO;

import java.util.List;

/**
* @author qinyc
* @description 针对表【es_order】的数据库操作Service
* @createDate 2023-07-18 21:33:14
*/
public interface OrderService {

    OrderDetailVO getOrderById(String orderId);

    void closeOrder(String id);


    List<OrderInfoVO> getOrders(int userId, OrderSearchDTO orderSearchDTO);

    OrderDetailVO createOrder(OrderCreateDTO orderCreateDTO, int userId);

    void paySuccess(OrderPaySuccessDTO paySuccessDTO);

    void completeOrder(String orderId);
}